CROSS_COMPILE = 

CC = $(CROSS_COMPILE)gcc

CFLAGS= -Wall -g 

TARGET= server client server.o client.o doublelist.o

all: $(TARGET)

server:server.o doublelist.o
	$(CC) $^  -o  $@ -lsqlite3 -lpthread
	
client: client.o doublelist.o
	$(CC) $^   -o $@ -lsqlite3 -lpthread
%*.o:%*.c
	gcc $(CFLAGS) $< -o $@

.PHONY: clean 
clean:
	rm -rf a.out $(TARGET)
